﻿
    using Microsoft.Phone.Info;
    using WCYCReader;
    using System;
    using System.Net;
    using WCYCReader.Utility;
namespace WCYCReader.Main
{
    public class GetHttpInfo
    {
        public static WebHeaderCollection GetHttpHeaders()
        {
            WebHeaderCollection headers = new WebHeaderCollection();
            if (SettingHelper.IsSettings("QQReader_sid"))
            {
                headers["sid"] = SettingHelper.GetValueFromSettings("QQReader_sid") as string;
            }
            headers["c_version"] = "qqreader_1.0.0_0001_wp7";
            string str = DeviceExtendedProperties.GetValue("DeviceName").ToString();
            if (str.Length > 0)
            {
                headers["ua"] = str;
            }
            headers["usid"] = "-1";
            headers["c_platform"] = "wp7";
            headers["pageId"] = App.QQReader_pageId;
            headers["prePageId"] = App.QQReader_prePageId;
            return headers;
        }
    }
}

